package com.cwg.dict.stem.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang.builder.ToStringBuilder;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Sections {

	@XmlElement(name = "section")
	private List<Section>	sections	= new ArrayList<Section>();

	public List<Section> getSections() {
		return sections;
	}

	public void setSections(List<Section> section) {
		this.sections = section;
	}

	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		for (Section section : sections) {
			result.append(ToStringBuilder.reflectionToString(section)).append("\n");
		}
		return result.toString();
	}

}
